import request from "@/utils/request";

/**
 * 获取分类列表
 * @param props
 * @returns {*}
 */
export const getCategoryList = props => {
  return request({
    url: "/mall/selectProduct/categoryList",
    method: "post",
    data: props
  });
};
/**
 * 分页商品查询
 * @param props
 * @returns {*}
 */
export const getSelectPage = props => {
  return request({
    // url: "/mall/tenantSelect/page",
    url: "/mall/selectProduct/pageForShowroom",
    method: "post",
    data: props
  });
};

/**
 * 可选商品-查询属性列表
 */
export const queryStastsList = props => {
  return request({
    url: "/mall/selectProduct/queryStastsList",
    method: "post",
    data: props
  });
};

// 上样商品查询
export const newGetSelectPage = query => {
  return request({
    url: "/purchase/api/cpaBusinessShowroom/getShowroomProductSample",
    method: "get",
    params: query
  });
};

// 获取详情
export const getShowroomDetail = query => {
  return request({
    url: "/purchase/api/cpaBusinessShowroom/getShowroomDetail",
    method: "get",
    params: query
  });
};

// 展厅审核通过 status审核状态 1--审核通过 2--展厅上线 3--启用 4--禁用 5--删除
export const examShowroom = data => {
  return request({
    url: "/purchase/api/cpaBusinessShowroomManage/examShowroom",
    method: "post",
    data
  });
};
